import React from "react"
import { Input } from "antd"

const { Search } = Input

interface PropsToolbar {
    compClass: string
}

/**
 * 搜索工具栏
 */
const ToolBar = ({ compClass }: PropsToolbar) => {
    return (
        <header className={compClass}>
            <Search
                placeholder="关键字以空格形式隔开"
                allowClear
                enterButton="搜索"
                size="large"
            />
        </header>
    )
}

export default ToolBar
